The rapid growth of the Internet of Things (IoT) has led to the generation of massive amounts of data, making fast and efficient real-time processing essential which can be accessed in new models such as edge computing. This paper provides a comprehensive review of edge computing concepts, architectures, key technologies, and enabling tools like containers, microservices, and serverless computing. It also addresses critical areas including advanced networking, data management, resource optimization, software placement, security, and privacy. Additionally, this paper introduces ECO-EDGE, an innovative framework aimed at optimizing energy consumption, minimizing latency, and improving service delivery in IoT–Edge–Cloud systems. At the core of ECO-EDGE is the APEO algorithm, which intelligently allocates resources, places data and services, and manages energy at edge nodes. Evaluation results show that ECO-EDGE significantly outperforms traditional models in reducing latency, saving energy, and increasing system reliability.